package com.hengpeng.itfinoss.service;

/**
 * <pre>
 * 流水号服务接口
 * </pre>
 * @author wangtongbin
 * @version 1.0, 2014-8-17
 */
public interface SequenceService
{
	public static final String CONTEXT_BEAN_NAME_SEQUENCESERVICE = "OSSSequenceService";

	/**
	 * <pre>
	 * 创建流水号
	 * </pre>
	 * @param prefix 前缀
	 * @param suffix 后缀
	 * @param length 长度
	 * @param sequenceName 流水号标志名称
	 * @param sequenceCount 个数
	 * @param modMaxNum 最大值
	 * @param serviceFactory 远程请求对象
	 * @return
	 */
	public String getSequenceNo(String prefix, String suffix, Integer length, String sequenceName, long sequenceCount, Long modMaxNum);
	
	public long getSequence(String sequenceName);
}
